
-include ../makefile.init

RM := rm

LIBS = -lpthread

SERVIDOR_OBJS += \
./ListaJugadores.o \
./jugador.o \
./listaJugadoresTest.o \
./partida.o \
./servidor.o 

CLIENTE_OBJS += \
./ListaJugadores.o \
./jugador.o \
./partida.o \
./cliente.o 

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 

# All Target
all: servidor cliente

servidor: $(SERVIDOR_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C Linker'
	gcc  -o "servidor" $(SERVIDOR_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '
	
cliente: $(CLIENTE_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C Linker'
	gcc  -o "cliente" $(CLIENTE_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(SERVIDOR_OBJS) $(CLIENTE_OBJS) servidor cliente
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
